﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperMap.Data;

namespace DTGroup.iNek.WinUI
{
    /// <summary>
    /// 坐标转换操作类
    /// </summary>
    public class CoordSysTranslatorHandler : DTGroup.Networking.Framework.Singletonable<CoordSysTranslatorHandler>
    {      

        /// <summary>
        /// 坐标 投影转换
        /// </summary>
        /// <param name="geometry">Geometry</param>
        /// <param name="srcPrjCoordSys">Geometry 的投影</param>
        /// <param name="targetPrjCoordSys">需要转换的投影</param>
        /// <returns>是否转换成功</returns>
        public bool ConvertCoordSys(Geometry geometry, PrjCoordSys srcPrjCoordSys, PrjCoordSys targetPrjCoordSys)
        {
            return CoordSysTranslator.Convert(geometry, srcPrjCoordSys, targetPrjCoordSys, new CoordSysTransParameter(), CoordSysTransMethod.CoordinateFrame);
        }
      
    }
}
